﻿using Messhall.Application.Dto;
using Messhall.Application.Dto.Users;
using Messhall.Application.Dto.Users.Responses;
using Messhall.Domain.Permission.IRepositorys;
using Messhall.Framework.Autofac;

namespace Messhall.Application.Permission.Services;

public class UsersAppService
{
    private readonly IUsersRepository _usersRepository;

    public UsersAppService(IUsersRepository usersRepository)
    {
        this._usersRepository = usersRepository;
    }

    /// <summary>
    /// 获取用户分页列表
    /// </summary>
    /// <param name="request"></param>
    public async Task<PagingResponseBase<UserPagingResponse>> PagingAsync(UserPagingRequest request)
    {
        return await _usersRepository.PagingAsync(request);
    }
}